<template>
  <div >
    <iframe :src="url"	frameborder="0"  class="pdf-window" height="300px"></iframe>
  </div>
</template>

<script>
export default {
  name: 'draw',
  computed: {
    url(){
      let pathname = window.location.pathname;
      if(pathname.indexOf("http") <0){
          pathname = window.location.origin + pathname
      }
      return pathname + '/static/iodraw/index.html?uuid=' + this.uuid ;
    }
  },
  props: {
	  uuid: {
		default: '-1'
	  },
	},
  data() {
    return {};
  },
};
</script>

<style lang="scss">
.pdf-window {
  padding-left: 1px;
  width: calc(100% - 1px);
  height: calc(100% - 140px);
  min-height:600px;
  height:100%;

}
</style>
